package com.xnfh.field.viewmodel

import com.xnfh.common.bean.FieldDetailBean
import com.xnfh.framework.base.BaseStateObserver
import com.xnfh.framework.bean.BaseResp
import com.xnfh.framework.bean.RespStateData
import com.xnfh.network.base.BaseRepository
import com.xnfh.network.manager.ApiManager
import okhttp3.RequestBody

/**
 * @Description:
 * @Author: ziheng
 * @CreateDate: 2023/12/7 11:42
 * @UpdateUser: ziheng
 * @UpdateDate: 2023/12/7 11:42
 * @UpdateRemark: 更新说明
 */
class FieldTendencyImageViewModelRes : BaseRepository() {

    suspend fun requestFieldDetailByYear(
        requestBody: RequestBody,
        data: RespStateData<FieldDetailBean>
    ) = dealResp(
        { ApiManager.api.requestFiledDetail(requestBody) }, data
    )

}